/*
*Copyright (c) Nikhil Jain.
*Project ICARUS, communications and 
*artificial intelligence.
*/



/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
 */
package javadrone.statedata;

//~--- non-JDK imports --------------------------------------------------------

import javadrone.RemoteImage;
import javadrone.Sensor;

//~--- JDK imports ------------------------------------------------------------

import java.io.Serializable;

/**
 *
 * @author Nikzzay
 * install in both client and server
 */
public class VideoCaptureStateData extends StateData<VideoCaptureStateData.VideoCaptureState> {
    private static final Sensor DESCRIPTOR = Sensor.VID_STATE;

    public VideoCaptureStateData(VideoCaptureStateData.VideoCaptureState as) {
        super(as, DESCRIPTOR);
    }

    @Override
    public String toString() {
        return "VIDEO CAPTURE DATA: " + getData().toString();
    }

    public static class VideoCaptureState implements Serializable {
        private RemoteImage ri;

        public VideoCaptureState(RemoteImage ri) {
            this.ri = ri;
        }

        public RemoteImage getImage() {
            return ri;
        }

        @Override
        public String toString() {
            return "IMAGE";
        }
    }
}


//~ Formatted by Jindent --- http://www.jindent.com
